#include <iostream>
using namespace std;

class A {
  public:
    A() { cout << "A()" << endl; }
    ~A() { cout << "~A()" << endl; }
};

int main() {
    A a, *p = new A;
    delete p;
    cout << "end" << endl;

    return 0;
}
